<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="FCK" uri="http://java.fckeditor.net"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>新闻添加</title>
<link rel="stylesheet" href="<c:url value='/css/adnews.css'></c:url>">
<script type="text/javascript" src="<c:url value='/js/jquery-1.6.js'></c:url>"></script>
<script type="text/javascript">
	$(function(){
		$("select").css("width","200px").css("height","23px");
	});
	
	function getCmy(url){
			$.getJSON(url,"{}",function(data,status){
			$.each(data,function(index,keyvalue){
				var pt=new Option(keyvalue.Epiname,keyvalue.Epid);
				var selectedElement=$("select")[0];
				if($.browser.msie)
				{
					selectedElement.add(pt);
				}
				else
				{
					selectedElement.add(pt,null);
				}
			});
			$("input[type=submit]").attr("disabled",false);
			});
		}
</script>
</head>
<body onload="getCmy('<c:url value='/addEp.html'></c:url>')">
<div class="contain">
	<form action="<c:url value='/drugadd.action'></c:url>" method="post">
		<div class="items">
			<strong>药物名称：</strong>
			<input class="text" type="text" name="drugname" >
		</div>
		<div class="items">
			<strong>出品公司：&nbsp;</strong><select name="enterpid"><!-- 骨干企业eptype=1 -->
								<option value="">--请选择--</option>
							</select>
							<%
						
							%>
		</div>
		<div class="items">
			<strong>药物介绍：
				<FCK:editor instanceName="drupdescribe" width="600px" height="500px"></FCK:editor>
			</strong>
		</div>
		<div class="items">
			<input type="submit" value="药物添加" disabled="disabled">
		</div>
	</form>
</div>
</body>
</html>